<?php error_reporting(E_ALL ^ E_NOTICE);
	define('IN_SITE', true);
	session_start();
	include("common.php");
	include("string.php");
	include ("clsList.php");
	include ("clsHome.php"); 
	
	$page 		= 	isset($_GET['page'])?$_GET['page']:0;
	$pg 		= 	isset($_GET['page'])?$_GET['page']:1;	
	$url 		= 	$_SERVER['QUERY_STRING'] ;
	$tw 		= 	isset($_GET['town'])?$_GET['town']: "All" ;
	$_SESSION['town']	=	$tw	; 
	$List 			= new clsList($pg,$tw);
	$home			= new clsHome($tw);
	$result			= $List->getDetails($_GET['seo']);
	$seo_title 			= 	$List->seo_title;
	$seo_description	=	$List->seo_description;
	$seo_keyword		=	$List->seo_keyword;
	 
?> 
<!DOCTYPE html>
<html itemscope itemtype="http://schema.org/Product">
<head>
<meta charset="UTF-8" />
<meta itemprop="name" content="tin tức, ca nhạc, giải trí">
<meta itemprop="description" content="tin tuc, ca nhac, giai tri, vui, xa stress, teen, hot relax">
<meta itemprop="image" content="http://www.nhacgiaitri.net/images/logo.png">
<title><?php echo $seo_title;?></title>
<meta name="description" content="<?php echo $seo_description;?>" />
<meta name="keywword" content="<?php echo $seo_keyword;?>" />
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-32694153-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
 <base href="<?php echo $site_base_href;?>" />
<link type="text/css" href="css/maincss.css" rel="stylesheet" media="screen" />
<link type="text/css" href="css/content.css" rel="stylesheet" media="screen" /> 
<link rel="stylesheet" type="text/css" href="css/index.css" media="all"> 

</head> 

<body> 

<div id="wrapper-container">
	<div style="overflow: hidden;" id="wrap">	
         <div id="wrap_content">
    <!--header-->
    <?php include('header.php');?>
    <!--header-->
    <div class="ClearItems"></div>
    <div id="mega-content">
    	<div id="left-col">
			<div class="mega-news">
            	<!--slider-->
			     <?php echo $result;?>
    			<!--slider-->    
    			
			</div>
        </div>
        <div id="right-col">
         	<?php echo $List->sidebar();?>	
			<?php echo $home->san_pham_hot(); ?>     
		</div>
    </div>
	<div class="ClearItems" style="height:10px;"></div>
    <!--footer-->
    <?php include('footer.php');?>
    <!--footer-->   
</div>
</div>
</div>

</body>
</html>

 
 